package com.yc.controller;

import com.yc.service.impl.SchoolYearServiceImpl;
import com.yc.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author mqm
 * @version 1.0
 * @date 2023/8/2 18:13
 */

/**
 * 学期
 */
@RestController
public class SchoolYearController {

    @Resource
    private SchoolYearServiceImpl service;

    @ApiOperation("查出学年")
    @RequestMapping("/queryTerm")
    public Result queryTerm(){
        List<String> list = service.queryTerm();
        return Result.success(list);
    }
}
